import Instance from "./Instance.js"

const numbertext = {


    update() {
        this.updateNumberProductNumber()
        this.updateNumberSeedNumber()
    },


    onLayoutStart() {

        numbertext.seedText = Instance.GetPickInstance("SeedNumberText")
        numbertext.productText = Instance.GetPickInstance("ProductNumberText")

    },



    updateNumberSeedNumber() {

        this.seedText.text="AppleSeed:"+rt.globalVars["ApplesSeed"]
        +"\nPotatoesSeed:"+rt.globalVars["PotatoesSeed"]
        +"\nPineappleSeed:"+rt.globalVars["PineappleSeed"]
        

    },


    updateNumberProductNumber() {
        this.productText.text="Apple:"+rt.globalVars["Product_Apples"]
        +"\nPineapple:"+rt.globalVars["Product_Pineapple"]
        +"\nPotatoes:"+rt.globalVars["Product_Potatoes"]



    }


}


export default numbertext